/*
 * @Author: dagu 243065157@qq.com
 * @Date: 2025-01-26 14:55:09
 * @LastEditors: dagu 243065157@qq.com
 * @LastEditTime: 2025-01-27 11:37:29
 * @FilePath: \uploadBug\format-bug-msg\vite.config.ts
 * @Description: Vite 配置文件
 */
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import electron from 'vite-plugin-electron/simple';

export default defineConfig({
  plugins: [
    react(),
    electron({
      main: {
        entry: 'electron/main.js'
      }
    })
  ],
  server: {
    port: 5173
  },
  build: {
    outDir: 'dist',
    emptyOutDir: true
  }
});
